<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>



	<div class="container-fluid"
		data-ng-controller="periodCaptionQueryListCtrl as Model">

		<div class="row">
			<div class="col-sm-12">
				<nav class="nav">
      				<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<button type="button" class="btn btn-default" data-ng-click="Model.query()" ng-hide="true">
									<span class="glyphicon glyphicon-refresh"></span> 查询
								</button>
							</div>
						</li>
					</ul>

					<query-like data="Model.dataMaster" place-holder="模糊查询..."></query-like>
				
	<form class="navbar-form navbar-left buttonBar" style="padding-left:0px;padding-right:0px;">
         <div class="form-group">
 			<label class="control-label">单号:</label>
          	<grid-filter  placeholder="请输入子单号" filter-data="Model.dataMaster" filter-relation="recordDetailNo" xid="gridFilter1" auto-refresh="false"></grid-filter>
         </div>
         <div class="form-group" ng-hide="true">
 			<label class="control-label">单据日期:</label>
          	<grid-filter  placeholder="请输入单据日期" filter-data="Model.dataMaster" filter-relation="StorageRecordDetail.orderDate" xid="gridFilter4" auto-refresh="false"></grid-filter>
        </div>
         <div class="form-group">
 			<label class="control-label">单据日期:</label>
          	<range-filter  placeholder="请输入日期" filter-data="Model.dataMaster" filter-relation="StorageRecordDetail.orderDate" xid="rangeilter1" auto-refresh="false"></range-filter>
         </div>
		<!-- Split button -->
		<div class="btn-group">
			<button type="button" class="btn btn-default" data-ng-click="Model.refresh()">
				<span class="glyphicon glyphicon-refresh"></span> 刷新
			</button>
		  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
		    <span class="caret"></span>
		    <span class="sr-only">Toggle Dropdown</span>
		  </button>
		  <ul class="dropdown-menu" role="menu">
		    <li><a data-toggle="collapse" href="#_inventory_recordDetailQuery_list"> 更多过滤条件</a></li>
		  </ul>
		</div>
    </form>		

				</nav>
				
<div class="collapse" id="_inventory_recordDetailQuery_list">
  <div class="well" style="padding-left:0px;padding-right:0px;">
	<nav class="nav">
		<form class="navbar-form navbar-left buttonBar" style="padding-left:0px;padding-right:0px;">
         <div class="form-group">
 			<label class="control-label">物料号:</label>
          	<grid-filter  placeholder="请输入物料编码" filter-data="Model.dataMaster" filter-relation="StorageRecordDetail.itemNo" xid="gridFilter2" auto-refresh="false"></grid-filter>
         </div>
         <div class="form-group">
 			<label class="control-label">仓库名称:</label>
          	<grid-filter  placeholder="请输入仓库名称" filter-data="Model.dataMaster" filter-relation="storageName" xid="gridFilter3" auto-refresh="false"></grid-filter>
         </div>
		<button type="button" class="btn btn-default" data-ng-click="Model.refresh()" data-toggle="collapse" data-target="#_inventory_recordDetailQuery_list">
			<span class="glyphicon glyphicon-refresh"></span> 刷新
		</button>
		</form>
	</nav>
  </div>
</div>				

			</div>
		</div>
<div class="row">
  <div class="col-sm-6 col-md-3">
    <div class="thumbnail">
      <div class="caption">
        <h3 ng-bind="Model.dataMaster.getAggregateValue('sumItemAmount')"></h3>
        <p>期初金额</p>
      </div>
    </div>
  </div>
  <div class="col-sm-6 col-md-3">
    <div class="thumbnail">
      <div class="caption">
        <h3 ng-bind="Model.dataMaster.getAggregateValue('sumCostingAmount')"></h3>
        <p>本期发生</p>
      </div>
    </div>
  </div>
  <div class="col-sm-6 col-md-3">
    <div class="thumbnail">
      <div class="caption">
        <h3 ng-bind="Model.dataMaster.getAggregateValue('sumAccountQuantityI')"></h3>
        <p>本年累计发生</p>
      </div>
    </div>
  </div>
  <div class="col-sm-6 col-md-3">
    <div class="thumbnail">
      <div class="caption">
        <h3 ng-bind="Model.dataMaster.getAggregateValue('sumAccountQuantityO')"></h3>
        <p>期末余额</p>
      </div>
    </div>
  </div>
</div>

		<div class="row">
			<div class="col-sm-12">

			<div class="table-responsive">
				<table class="table table-hover table-condensed table-bordered" style="margin:0px;">
					<thead>
						
						<tr style="background-color:#CCCCCC;">
							<th></th>
							<th colspan="2">会计科目</th>
							<th colspan="2" style="text-align: center;">期初金额</th>
							<th colspan="2" style="text-align: center;">本期发生</th>
							<th colspan="2" style="text-align: center;">本期发生笔数</th>
							<th colspan="2" style="text-align: center;">本年累计发生</th>
							<th colspan="2" style="text-align: center;">期末余额</th>
						</tr>
						<tr style="background-color:#CCCCCC;">
							<th>#</th>
							<th>科目编码</th>
							<th>科目名称</th>
							<th>借方</th>
							<th>贷方</th>
							<th>借方</th>
							<th>贷方</th>
							<th>借方</th>
							<th>贷方</th>
							<th>借方</th>
							<th>贷方</th>
							<th>借方</th>
							<th>贷方</th>
						</tr>
					</thead>
					<tbody>
						<tr data-ng-show="row.userdata.recordState!='delete'"
							data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
							data-ng-click="Model.dataMaster.onRowClick(row,$event)"
							data-ng-repeat="row in Model.dataMaster.rows">
							<td style="width: 10px;">
								<span data-ng-show="Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)" class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
								<span data-ng-show="Model.dataMaster.currentIndex!=Model.dataMaster.rows.indexOf(row)">{{Model.dataMaster.rows.indexOf(row)+1}}</span>
							</td>

							<td style="width: 100px;"><span
								data-ng-bind="row.captionNo.value"></span></td>
							<td style="width: 300px;" title="">
								<span data-ng-bind="row.captionFullName.value" uib-tooltip="{{row.itemDescribe.value}}" tooltip-trigger="mouseenter"></span>
							</td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.debitBegin.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.creditBegin.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.debitPeriod.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.creditPeriod.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.debitCount.value"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.creditCount.value"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.debitYear.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.creditYear.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.debitEnd.value | number:2"></span></td>
							<td style="width: 100px;text-align: right;"><span data-ng-bind="row.creditEnd.value | number:2"></span></td>

						</tr>
					</tbody>

					<tfoot>
					</tfoot>

				</table>
			</div>

			</div>

		</div>

		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12">

				<pag-ination data="Model.dataMaster" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

			</div>
		</div>


	</div>





</body>

</html>

